﻿namespace passitumi.Properties
{
	/**
	 * This class will handle specific events on the Settings class on how the 
	 * setting's value are changed, saved and loaded.
	 * 
	 * The SettingChanging event is raised before a setting's value is changed.
	 * The PropertyChanged event is raised after a setting's value is changed.
	 * The SettingsLoaded event is raised after the setting values are loaded.
	 * The SettingsSaving event is raised before the setting values are saved.
	 */
	internal sealed partial class Settings
	{

		/**
		 * Constructor which adds event handlers for manipulating the setting values.
		 */
		public Settings()
		{
			// this.SettingChanging += this.SettingChangingEventHandler;
			// this.SettingsSaving += this.SettingsSavingEventHandler;
		}

		/**
		 * The event handler method which is called when the event of changing the settings is fired.
		 */
		private void SettingChangingEventHandler(object sender, System.Configuration.SettingChangingEventArgs e)
		{
			// Add code to handle the SettingChangingEvent event here.
		}

		/**
		 * The event handler method which is called when the event of saving the settings is fired.
		 */
		private void SettingsSavingEventHandler(object sender, System.ComponentModel.CancelEventArgs e)
		{
			// Add code to handle the SettingsSaving event here.
		}
	}
}